apt list --installed | grep ruby-dev
if [[ $? -eq 1 ]]
then
  sudo apt -y install ruby-dev
fi
echo y | sudo gem install colorls
# sudo ln -sf /usr/local/bin/colorls /bin/ls
cat ${HOME}/.${USER}/profile | grep "unalias ls"
if [[ $? -eq 1 ]]
then
  echo "unalias ls" >> ${HOME}/.${USER}/profile
fi
cat ${HOME}/.${USER}/profile | grep -E "^alias ls"
if [[ $? -eq 1 ]]
then
  echo "alias ls='colorls'" >> ${HOME}/.${USER}/profile
fi

if [[ ! -d ${HOME}/.local/bin ]]
then
  mkdir -p ${HOME}/.local/bin
fi
if [[ ! -f ${HOME}/.local/bin/ll ]]
then
  touch ${HOME}/.local/bin/ll
  echo "#!/bin/bash">${HOME}/.local/bin/ll
fi
cat ${HOME}/.local/bin/ll | grep "ls -al"
if [[ $? -eq 1 ]]
then
  echo "ls -al " > ${HOME}/.local/bin/ll
fi
chmod +x ${HOME}/.local/bin/ll
